const arr = [1,2,3]
const [foo, ...rest] = arr
console.log(rest);

const [a] = arr
console.log(a);

const obj = {name: 'zce', age: 18};
const name = 'tom'
const { names } = obj;
console.log(names);

const b = `asda
avacs`
console.log(b, "b");

// 模板函数

function myTagFunc (strings, namsdsdse, gender) {
    console.log(strings, namsdsdse, gender);
}

const result = myTagFunc`hey, ${namsdsdse} is a ${gender}`

console.log(result, "result")